package com.qwer.mapper.accesscontrol;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.transaction.annotation.Transactional;

import com.qwer.model.accesscontrol.AccApiInfo;
import com.qwer.model.accesscontrol.AccControlMapInfo;
import com.qwer.model.zp.ZPData;

public interface AccControlMapRepository  extends JpaSpecificationExecutor<AccControlMapInfo>,JpaRepository<AccControlMapInfo, Integer> {
    List<AccControlMapInfo> findByUserIdAndCallIdAndType(Integer userId,Integer callId,String type);
    
    List<AccControlMapInfo> findByCallUserIdAndCallIdAndType(Integer callUserId,Integer callId,String type);
    
    @Transactional
    void removeByCallIdAndUserId(Integer callId,Integer userId);
}
